package cn.ift8.domain;

import java.io.Serializable;

/**
 * Created by IFT8
 * on 2015/8/24.
 */
public class Thing implements Serializable {
    private Long tid;
    private String tname;
    private Integer count;
    private Double price;
    private String description;

    public Thing() {
    }

    public Thing(String tname, Integer count, Double price, String description) {
        this.tname = tname;
        this.count = count;
        this.price = price;
        this.description = description;
    }

    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Thing{" +
                "tid=" + tid +
                ", tname='" + tname + '\'' +
                ", count=" + count +
                ", price=" + price +
                ", description='" + description + '\'' +
                '}';
    }
}
